const db = require("./db");

const userSchema = new db.Schema({
    userId:{type:String},
    userName:{type:String},
    password:{type:String},
    tel:{type:Number},
    hobby:{type:Array},
    lastLogin:{type:String},
    joinDate:{type:String}, 
    birthday:{type:String}, 
    sex:{type:Number},
    code:{type:String},
    loginState:{type:Number},
    headPhoto:{type:String},
    nickName:{type:String},
    email:{type:String}
})

module.exports = db.model("user", userSchema);
